package com.lc.cehui.ui.adapter;
import android.widget.ImageView;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.lc.cehui.R;
import com.lc.cehui.http.glide.GlideApp;
import com.lc.cehui.http.response.GoodsTypeBean;

public class HomePageReleaseGridAdapter extends BaseQuickAdapter<GoodsTypeBean.DataBean,BaseViewHolder> {
    public HomePageReleaseGridAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, GoodsTypeBean.DataBean data) {
        GlideApp.with(getContext()).load(data.getPicurl()).into((ImageView) baseViewHolder.getView(R.id.iv_body));
        baseViewHolder.setText(R.id.tv_body,data.getTitle());
    }
}
